package com.work.intelligent_transportation2.fragment;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.work.intelligent_transportation2.R;
import com.work.intelligent_transportation2.fragment.CarSystem.ETC_Account;
public class CarSystemFragment extends Fragment {
    private static final String ARG_PARAM1 = "param1";
    private static final String ARG_PARAM2 = "param2";
    private String mParam1;
    private String mParam2;
    private ImageView carSystemETC;
    private ImageView carSystemIllegal;

    public CarSystemFragment() {
    }

    public static CarSystemFragment newInstance(String param1, String param2) {
        CarSystemFragment fragment = new CarSystemFragment();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM1, param1);
        args.putString(ARG_PARAM2, param2);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            mParam1 = getArguments().getString(ARG_PARAM1);
            mParam2 = getArguments().getString(ARG_PARAM2);
        }

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_car_system, container, false);
        carSystemETC = view.findViewById(R.id.car_system_ETC);
        carSystemIllegal = view.findViewById(R.id.car_system_Illegal);
        carSystemETC.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), ETC_Account.class);
                startActivity(intent);
            }
        });
        carSystemIllegal.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
            }
        });
        return view;
    }


}